public class TestMyLinkedList {

    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(5);
        myLinkedList.remove(5);
        myLinkedList.addFirst(5);
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addFirst(3);
        myLinkedList.addLast(4);
        myLinkedList.addIndex(0,6);
        myLinkedList.addIndex(6,7);
        myLinkedList.display();
        myLinkedList.addIndex(3,8);
        myLinkedList.display();     // 6 3 5 8 1 2 4 7
        System.out.println(myLinkedList.size());        //8
        myLinkedList.addFirst(6);
        myLinkedList.addFirst(6);
        myLinkedList.addIndex(5,6);
        myLinkedList.removeAllKey(6);
        myLinkedList.display();
        System.out.println(myLinkedList.contains(100));
        System.out.println(myLinkedList.contains(1));
        myLinkedList.clear();
        myLinkedList.display();

    }


}
